<template>
    <!-- <bottom @click="toFirstPage">跳到首页</bottom> -->
    <a-button type="primary" icon="poweroff" :loading="iconLoading" @click="enterIconLoading">
        跳到首页
  </a-button>
</template>
<script setup>
import {ref} from "vue"
import {useRouter} from "vue-router";
const router = useRouter()
const iconLoading = ref(false);

const enterIconLoading = () => {
  iconLoading.value = {
    delay: 100,
  };
  setTimeout(() => {
    iconLoading.value = false;
    router.push({path: "/"})
  }, 3000);
};


// this.$router.push({path: "/" })
</script>
